Inroduce new vcpu_lock_affinity() and vcpu_unlock_affinity() helper
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 26 Jan 2008 11:25:48 +0000 (11:25 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 26 Jan 2008 11:25:48 +0000 (11:25 +0000)
commitb9b6a9658d96564cfa03f76a5181a60193b11fb5
tree004ccab00868c157974d5ea3127527e51530bf40
parent03bb50b2766b72ea18386a327339cb9a2492533a
Inroduce new vcpu_lock_affinity() and vcpu_unlock_affinity() helper
functions for use by x86's continue_hypercall_on_cpu().

This has two advantages:
 1. We can lock out ordinary vcpu_set_affinity() commands from dom0.
 2. We avoid the (in this case bogus) check for dom0_vcpus_pin.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/domain.c
xen/common/schedule.c
xen/include/xen/sched.h